/** 我们组装模块并导出 store 的地方 */

import Vue from 'vue';
import Vuex from 'vuex';
import * as actions from './actions';
import * as getters from './getters';
import feed from './modules/feed';
import main from './modules/main';
import auth from './modules/auth';
import contact from './modules/contact';
import message from './modules/message';
import comment from './modules/comment';

// import createLogger from '@/src/plugins/logger';

Vue.use(Vuex);

const debug = process.env.NODE_ENV !== 'production';

export default new Vuex.Store({
  actions,
  getters,
  modules: {
    main,
    feed,
    contact,
    message,
    auth,
    comment,
  },
  strict: debug,
    // plugins: debug ? [createLogger()] : []
});
